package com.dmx.platform.service;

/**
 *@author:Beni Yang
 *@date:2012-9-2
 *@function:
 */
public class Message {
	
	public  final static int TYPE_PURCHASED_SUCESSFUL=1;
	public  final static int TYPE_PURCHASED_FAILED=2;
	public  final static int TYPE_ALLOCATED=3;
	public  final static int TYPE_REFUSED=4;
	public  final static int TYPE_CONFIRMED=5;
	

	public  final static int TYPE_PUBLISH_ROOM=10;
	public  final static int TYPE_UNPUBLISH_ROOM=11;
	public  final static int TYPE_ROOM_INVALID=12;
	public  final static int TYPE_USER_PAUSED=13;
	public  final static int TYPE_USER_ACTIVED=14;
	public  final static int TYPE_HAPPEN_ORDER=15;
	public  final static int TYPE_ROOM_OVER=16;

	public  final static int OBJ_ALL=-1;
	
	private String obj;
	private String src;
	private int msgType;
	private String addiText;
	
	public Message(String obj,String src,int msgType){
		this.obj=obj;
		this.src=src;
		this.msgType=msgType;
	}
	
	public Message(String obj,String src,int msgType,String addiText){
		this.obj=obj;
		this.src=src;
		this.msgType=msgType;
		this.addiText=addiText;
	}

	public String getObj() {
		return obj;
	}

	public void setObj(String obj) {
		this.obj = obj;
	}

	public String getSrc() {
		return src;
	}

	public void setSrc(String src) {
		this.src = src;
	}

	public int getMsgType() {
		return msgType;
	}

	public void setMsgType(int msgType) {
		this.msgType = msgType;
	}

	public String getAddiText() {
		return addiText;
	}

	public void setAddiText(String addiText) {
		this.addiText = addiText;
	}

}
